'DeclarationPublic Overloads Shared Function ExtractValueFromVariant(Of T)( _ ByVal context As ISystemContext, _ ByVal value As Object, _ ByVal throwOnError As Boolean _ ) As Object
'UsageDim context As ISystemContext Dim value As Object Dim throwOnError As Boolean Dim value As Object value = BaseVariableState.ExtractValueFromVariant(Of T)(context, value, throwOnError)
public static object ExtractValueFromVariant<T>( ISystemContext context, object value, bool throwOnError )
public: static Object^ ExtractValueFromVariantgeneric<typename T> ( ISystemContext^ context, Object^ value, bool throwOnError )
Parameters
- context
 - The context.
 - value
 - The value.
 - throwOnError
 - if set to 
truethrows the ServiceResultException on error, otherwise default value for T is returned . 
Type Parameters
- T
 - The framework type of value contained in this instance.
 
Return Value
The value of the T type.